package com.jingdun.sport.activity

import com.losttemple.sql.language.operator.DbSource
import com.losttemple.sql.language.operator.TableConfigure
import com.losttemple.sql.language.types.SetRef

class SportActivities(set: (TableConfigure.() -> Unit) -> SetRef) :
        DbSource(set { tableName("sport_activity") }) {
    var id = intColumn("id")
    var config = intColumn("config")
    var fixedType = intColumn("fixed_type")
    var fixedMeasure = intColumn("fixed_measure")
}

class SportRecords(set: (TableConfigure.() -> Unit) -> SetRef) :
        DbSource(set { tableName("sport_record") }) {
    var id = intColumn("id")
    var activity = intColumn("activity")
    var user = stringColumn("user")
    var measure = intColumn("measure")
    var start = dateColumn("start")
    var end = dateColumn("end")
    var video = stringColumn("video")
    var sportTypeId = intColumn("sport_type_id")
    var status = stringColumn("status")
    var roomId = stringColumn("roomId")
    var type = intColumn("type")
}